package cn.v2tila.rsosa.student.jpa;

import cn.v2tila.rsosa.student.entity.SchoolEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author v2tila on 0:17 2019/2/25
 */

public interface SchoolJPA extends JpaRepository<SchoolEntity, Integer>,
        JpaSpecificationExecutor<SchoolJPA> {


    SchoolEntity findByName(String name);

    SchoolEntity findByNo(String no);
}
